Integrand size = 38, antiderivative size = 266 \[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\frac {2 (a-b) \sqrt {a+b} B \sqrt {\cos (c+d x)} \csc (c+d x) E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a^2 d \sqrt {\sec (c+d x)}}-\frac {2 \sqrt {a+b} B \sqrt {\cos (c+d x)} \csc (c+d x) \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right ) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (1+\sec (c+d x))}{a-b}}}{a d \sqrt {\sec (c+d x)}} \]
2*(a-b)*B*csc(d*x+c)*EllipticE((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+ c)^(1/2),((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d*x+ c))/(a+b))^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/a^2/d/sec(d*x+c)^(1/2)-2*B *csc(d*x+c)*EllipticF((a+b*cos(d*x+c))^(1/2)/(a+b)^(1/2)/cos(d*x+c)^(1/2), ((-a-b)/(a-b))^(1/2))*(a+b)^(1/2)*cos(d*x+c)^(1/2)*(a*(1-sec(d*x+c))/(a+b) )^(1/2)*(a*(1+sec(d*x+c))/(a-b))^(1/2)/a/d/sec(d*x+c)^(1/2)
Time = 6.06 (sec) , antiderivative size = 298, normalized size of antiderivative = 1.12 \[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=B \left (\frac {2 \sqrt {a+b \cos (c+d x)} \sqrt {\sec (c+d x)} \sin (c+d x)}{a d}-\frac {2 \sqrt {\cos ^2\left (\frac {1}{2} (c+d x)\right ) \sec (c+d x)} \left (2 (a+b) \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} E\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right )|\frac {-a+b}{a+b}\right )-2 a \sqrt {\frac {\cos (c+d x)}{1+\cos (c+d x)}} \sqrt {\frac {a+b \cos (c+d x)}{(a+b) (1+\cos (c+d x))}} \operatorname {EllipticF}\left (\arcsin \left (\tan \left (\frac {1}{2} (c+d x)\right )\right ),\frac {-a+b}{a+b}\right )+\cos (c+d x) (a+b \cos (c+d x)) \sec ^2\left (\frac {1}{2} (c+d x)\right ) \tan \left (\frac {1}{2} (c+d x)\right )\right )}{a d \sqrt {a+b \cos (c+d x)} \sqrt {\sec ^2\left (\frac {1}{2} (c+d x)\right )}}\right ) \]
B*((2*Sqrt[a + b*Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*Sin[c + d*x])/(a*d) - (2 *Sqrt[Cos[(c + d*x)/2]^2*Sec[c + d*x]]*(2*(a + b)*Sqrt[Cos[c + d*x]/(1 + C os[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x]))]*Elli pticE[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] - 2*a*Sqrt[Cos[c + d*x]/ (1 + Cos[c + d*x])]*Sqrt[(a + b*Cos[c + d*x])/((a + b)*(1 + Cos[c + d*x])) ]*EllipticF[ArcSin[Tan[(c + d*x)/2]], (-a + b)/(a + b)] + Cos[c + d*x]*(a + b*Cos[c + d*x])*Sec[(c + d*x)/2]^2*Tan[(c + d*x)/2]))/(a*d*Sqrt[a + b*Co s[c + d*x]]*Sqrt[Sec[(c + d*x)/2]^2]))
Time = 0.81 (sec) , antiderivative size = 246, normalized size of antiderivative = 0.92, number of steps used = 8, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.211, Rules used = {2011, 3042, 4710, 3042, 3280, 3042, 3295, 3473}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {\sec ^{\frac {3}{2}}(c+d x) (a B+b B \cos (c+d x))}{(a+b \cos (c+d x))^{3/2}} \, dx\) |
\(\Big \downarrow \) 2011 |
\(\displaystyle B \int \frac {\sec ^{\frac {3}{2}}(c+d x)}{\sqrt {a+b \cos (c+d x)}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \int \frac {\csc \left (c+d x+\frac {\pi }{2}\right )^{3/2}}{\sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 4710 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \int \frac {1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\) |
\(\Big \downarrow \) 3280 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\int \frac {\cos (c+d x)+1}{\cos ^{\frac {3}{2}}(c+d x) \sqrt {a+b \cos (c+d x)}}dx-\int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {a+b \cos (c+d x)}}dx\right )\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )+1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx-\int \frac {1}{\sqrt {\sin \left (c+d x+\frac {\pi }{2}\right )} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx\right )\) |
\(\Big \downarrow \) 3295 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\int \frac {\sin \left (c+d x+\frac {\pi }{2}\right )+1}{\sin \left (c+d x+\frac {\pi }{2}\right )^{3/2} \sqrt {a+b \sin \left (c+d x+\frac {\pi }{2}\right )}}dx-\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{a d}\right )\) |
\(\Big \downarrow \) 3473 |
\(\displaystyle B \sqrt {\cos (c+d x)} \sqrt {\sec (c+d x)} \left (\frac {2 (a-b) \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} E\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right )|-\frac {a+b}{a-b}\right )}{a^2 d}-\frac {2 \sqrt {a+b} \cot (c+d x) \sqrt {\frac {a (1-\sec (c+d x))}{a+b}} \sqrt {\frac {a (\sec (c+d x)+1)}{a-b}} \operatorname {EllipticF}\left (\arcsin \left (\frac {\sqrt {a+b \cos (c+d x)}}{\sqrt {a+b} \sqrt {\cos (c+d x)}}\right ),-\frac {a+b}{a-b}\right )}{a d}\right )\) |
B*Sqrt[Cos[c + d*x]]*Sqrt[Sec[c + d*x]]*((2*(a - b)*Sqrt[a + b]*Cot[c + d* x]*EllipticE[ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x ]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d*x]))/(a - b)])/(a^2*d) - (2*Sqrt[a + b]*Cot[c + d*x]*EllipticF [ArcSin[Sqrt[a + b*Cos[c + d*x]]/(Sqrt[a + b]*Sqrt[Cos[c + d*x]])], -((a + b)/(a - b))]*Sqrt[(a*(1 - Sec[c + d*x]))/(a + b)]*Sqrt[(a*(1 + Sec[c + d* x]))/(a - b)])/(a*d))
3.7.31.3.1 Defintions of rubi rules used
Int[(u_.)*((a_) + (b_.)*(v_))^(m_.)*((c_) + (d_.)*(v_))^(n_.), x_Symbol] :> Simp[(b/d)^m Int[u*(c + d*v)^(m + n), x], x] /; FreeQ[{a, b, c, d, n}, x ] && EqQ[b*c - a*d, 0] && IntegerQ[m] && ( !IntegerQ[n] || SimplerQ[c + d*x , a + b*x])
Int[1/(((a_.) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(3/2)*Sqrt[(c_.) + (d_.)*sin [(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[1/(a - b) Int[1/(Sqrt[a + b*Sin [e + f*x]]*Sqrt[c + d*Sin[e + f*x]]), x], x] - Simp[b/(a - b) Int[(1 + Si n[e + f*x])/((a + b*Sin[e + f*x])^(3/2)*Sqrt[c + d*Sin[e + f*x]]), x], x] / ; FreeQ[{a, b, c, d, e, f}, x] && NeQ[b*c - a*d, 0] && NeQ[a^2 - b^2, 0] && NeQ[c^2 - d^2, 0]
Int[1/(Sqrt[(d_.)*sin[(e_.) + (f_.)*(x_)]]*Sqrt[(a_) + (b_.)*sin[(e_.) + (f _.)*(x_)]]), x_Symbol] :> Simp[-2*(Tan[e + f*x]/(a*f))*Rt[(a + b)/d, 2]*Sqr t[a*((1 - Csc[e + f*x])/(a + b))]*Sqrt[a*((1 + Csc[e + f*x])/(a - b))]*Elli pticF[ArcSin[Sqrt[a + b*Sin[e + f*x]]/Sqrt[d*Sin[e + f*x]]/Rt[(a + b)/d, 2] ], -(a + b)/(a - b)], x] /; FreeQ[{a, b, d, e, f}, x] && NeQ[a^2 - b^2, 0] && PosQ[(a + b)/d]
Int[((A_) + (B_.)*sin[(e_.) + (f_.)*(x_)])/(((b_.)*sin[(e_.) + (f_.)*(x_)]) ^(3/2)*Sqrt[(c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]]), x_Symbol] :> Simp[-2*A* (c - d)*(Tan[e + f*x]/(f*b*c^2))*Rt[(c + d)/b, 2]*Sqrt[c*((1 + Csc[e + f*x] )/(c - d))]*Sqrt[c*((1 - Csc[e + f*x])/(c + d))]*EllipticE[ArcSin[Sqrt[c + d*Sin[e + f*x]]/Sqrt[b*Sin[e + f*x]]/Rt[(c + d)/b, 2]], -(c + d)/(c - d)], x] /; FreeQ[{b, c, d, e, f, A, B}, x] && NeQ[c^2 - d^2, 0] && EqQ[A, B] && PosQ[(c + d)/b]
Int[(csc[(a_.) + (b_.)*(x_)]*(c_.))^(m_.)*(u_), x_Symbol] :> Simp[(c*Csc[a + b*x])^m*(c*Sin[a + b*x])^m Int[ActivateTrig[u]/(c*Sin[a + b*x])^m, x], x] /; FreeQ[{a, b, c, m}, x] && !IntegerQ[m] && KnownSineIntegrandQ[u, x]
Leaf count of result is larger than twice the leaf count of optimal. \(658\) vs. \(2(242)=484\).
Time = 20.43 (sec) , antiderivative size = 659, normalized size of antiderivative = 2.48
method | result | size |
default | \(-\frac {2 B {\left (-\frac {\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1}{\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1}\right )}^{\frac {3}{2}} \left (\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}-1\right ) \left (-\sqrt {-\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1}\, \sqrt {\frac {\left (\csc ^{2}\left (d x +c \right )\right ) a \left (1-\cos \left (d x +c \right )\right )^{2}-\left (\csc ^{2}\left (d x +c \right )\right ) b \left (1-\cos \left (d x +c \right )\right )^{2}+a +b}{a +b}}\, F\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right ) a +\sqrt {-\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1}\, \sqrt {\frac {\left (\csc ^{2}\left (d x +c \right )\right ) a \left (1-\cos \left (d x +c \right )\right )^{2}-\left (\csc ^{2}\left (d x +c \right )\right ) b \left (1-\cos \left (d x +c \right )\right )^{2}+a +b}{a +b}}\, E\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right ) a +\sqrt {-\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1}\, \sqrt {\frac {\left (\csc ^{2}\left (d x +c \right )\right ) a \left (1-\cos \left (d x +c \right )\right )^{2}-\left (\csc ^{2}\left (d x +c \right )\right ) b \left (1-\cos \left (d x +c \right )\right )^{2}+a +b}{a +b}}\, E\left (\cot \left (d x +c \right )-\csc \left (d x +c \right ), \sqrt {-\frac {a -b}{a +b}}\right ) b +\left (\csc ^{3}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{3} a -\left (\csc ^{3}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{3} b +a \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )+b \left (\csc \left (d x +c \right )-\cot \left (d x +c \right )\right )\right ) \sqrt {\frac {\left (\csc ^{2}\left (d x +c \right )\right ) a \left (1-\cos \left (d x +c \right )\right )^{2}-\left (\csc ^{2}\left (d x +c \right )\right ) b \left (1-\cos \left (d x +c \right )\right )^{2}+a +b}{\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1}}}{d \left (\left (\csc ^{2}\left (d x +c \right )\right ) \left (1-\cos \left (d x +c \right )\right )^{2}+1\right ) \left (\left (\csc ^{2}\left (d x +c \right )\right ) a \left (1-\cos \left (d x +c \right )\right )^{2}-\left (\csc ^{2}\left (d x +c \right )\right ) b \left (1-\cos \left (d x +c \right )\right )^{2}+a +b \right ) a}\) | \(659\) |
parts | \(\text {Expression too large to display}\) | \(2029\) |
-2*B/d*(-(csc(d*x+c)^2*(1-cos(d*x+c))^2+1)/(csc(d*x+c)^2*(1-cos(d*x+c))^2- 1))^(3/2)*(csc(d*x+c)^2*(1-cos(d*x+c))^2-1)*(-(-csc(d*x+c)^2*(1-cos(d*x+c) )^2+1)^(1/2)*((csc(d*x+c)^2*a*(1-cos(d*x+c))^2-csc(d*x+c)^2*b*(1-cos(d*x+c ))^2+a+b)/(a+b))^(1/2)*EllipticF(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2 ))*a+(-csc(d*x+c)^2*(1-cos(d*x+c))^2+1)^(1/2)*((csc(d*x+c)^2*a*(1-cos(d*x+ c))^2-csc(d*x+c)^2*b*(1-cos(d*x+c))^2+a+b)/(a+b))^(1/2)*EllipticE(cot(d*x+ c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*a+(-csc(d*x+c)^2*(1-cos(d*x+c))^2+1)^( 1/2)*((csc(d*x+c)^2*a*(1-cos(d*x+c))^2-csc(d*x+c)^2*b*(1-cos(d*x+c))^2+a+b )/(a+b))^(1/2)*EllipticE(cot(d*x+c)-csc(d*x+c),(-(a-b)/(a+b))^(1/2))*b+csc (d*x+c)^3*(1-cos(d*x+c))^3*a-csc(d*x+c)^3*(1-cos(d*x+c))^3*b+a*(csc(d*x+c) -cot(d*x+c))+b*(csc(d*x+c)-cot(d*x+c)))*((csc(d*x+c)^2*a*(1-cos(d*x+c))^2- csc(d*x+c)^2*b*(1-cos(d*x+c))^2+a+b)/(csc(d*x+c)^2*(1-cos(d*x+c))^2+1))^(1 /2)/(csc(d*x+c)^2*(1-cos(d*x+c))^2+1)/(csc(d*x+c)^2*a*(1-cos(d*x+c))^2-csc (d*x+c)^2*b*(1-cos(d*x+c))^2+a+b)/a
\[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )^{\frac {3}{2}}}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
Timed out. \[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\text {Timed out} \]
\[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )^{\frac {3}{2}}}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
\[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int { \frac {{\left (B b \cos \left (d x + c\right ) + B a\right )} \sec \left (d x + c\right )^{\frac {3}{2}}}{{\left (b \cos \left (d x + c\right ) + a\right )}^{\frac {3}{2}}} \,d x } \]
Timed out. \[ \int \frac {(a B+b B \cos (c+d x)) \sec ^{\frac {3}{2}}(c+d x)}{(a+b \cos (c+d x))^{3/2}} \, dx=\int \frac {{\left (\frac {1}{\cos \left (c+d\,x\right )}\right )}^{3/2}\,\left (B\,a+B\,b\,\cos \left (c+d\,x\right )\right )}{{\left (a+b\,\cos \left (c+d\,x\right )\right )}^{3/2}} \,d x \]